Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
shelly-iot
Advanced tools
This library supports reading and controlling Shelly devices.
The library communicates with Shelly devices by REST api (for controlling) and the CoAP protocol with the default Shelly firmware (no flashing of firmware needed!). Because CoAP use multicast UDP packages, the Shelly devices has to be in the same subnet like the host you use the library on. If you use them in a docker container, the container has to run in host or macvlan modus.
The library provides an event driven interface to inform you about status updates that are received using COAP packages.
tbd
Constructor to init the object. in options you can provide a logger to be used for debug logging.
Starts listening for CoAP packages in the network. Callback is called without parameters after listening started.
Stops listening for CoAP package. Callback is provided for convenience and called synchron without parameters.
Sends a multicast package so that all devices should answer with a status package. Callback is provided for convenience and called synchron without parameters.
Contacts a known device by Device-ID or by IP to request the device description. Callback is called with the following parameters: error, deviceId, payload, deviceIp
Contacts a known device by Device-ID or by IP to request the device status update. Callback is called with the following parameters: error, deviceId, payload, deviceIp
You can provide an array of Device-IDs or IP to request status updates. They will be emitted as events once received.
Sends a REST call to a known device by Device-ID or by IP to a certain path with parameters. The result is returned as callback. Callback is called with the following parameters: error, response data
If an error happens while parsing the received data an error event is emitted. Listening will continue, so it is no "fatal error"!
Emits connection status information for a device. A device is considered "offline" when no status update is received longer then the defined timeframe. Parameters are: deviceId and connection-status true/false
Emits device status update information for a device. Parameters are: deviceId and status payload
Emitted when listener disconnects, normally when you call stopListening()
The library also offers a index-dummy.js which offers the same interface then the real library and emits and provides example data.
FAQs
Library to communicate with Shelly.io devices
We found that shelly-iot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.